import Vue from 'vue'
import App from './App'
// 引入插件
import {request} from '@/common/request/index.js'
import cartmodel from '@/common/cart/cart.js'
import weixinupdate from '@/common/mpweixin/update.js'
import ShareSdk from '@/common/mpweixin/m.1.1.js'
import checkweixin from '@/common/mpweixin/checkweixin.js'
import checkLoginState from '@/common/login/index.js'

Vue.config.productionTip = false

Vue.prototype.$request = request //请求接口
Vue.prototype.$miniProgramID = "wxd5ca175274ba9541" //公众号appid
Vue.prototype.$resBaseurl="https://res.bestcake.com" //res域名
Vue.prototype.$cartmodel = cartmodel //购物车接口
Vue.prototype.$ShareSdk=ShareSdk //分享接口
Vue.prototype.$checkLoginState = checkLoginState //检查登录状态
//设置页面标题
Vue.prototype.$setTitle = function(title){
	// #ifdef H5
	document.title=title||'Happy先生'
	// #endif
	// #ifdef MP-WEIXIN
	uni.setNavigationBarTitle({
		title:title||'Happy先生'
	})
	// #endif
}
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
